package at.codebase.db;

import java.util.ArrayList;
import java.util.List;

import com.googlecode.objectify.Ref;

/**
 * @author Daniel Marth <danielmarth@gmx.at>
 */
public class DatabaseUtilities {

	public static <T> List<T> dereferenceList(List<Ref<T>> list) {
		List<T> results = new ArrayList<T>();
		for (Ref<T> it : list) {
			results.add(it.get());
		}
		return results;
	}

}
